import http from '@/http'
import qs from 'qs'
// 银盛进件相关

// 获取银盛进件列表
const ysAppliesList = (params) => {
    return http.get('v1/channels/yse/applies', {
        params,
        paramsSerializer: function (params) {
            return qs.stringify(params, { arrayFormat: 'brackets' })
        },
    })
}

// 批量下载
const MultipleDownLoad = (params) => {
    return http.get('v1/channels/yse/export', {
        params,
        paramsSerializer: function (params) {
            return qs.stringify(params, { arrayFormat: 'brackets' })
        }
    })
}
// 单个下载
const singleDownLoad = (id) => {
    return http.get(`v1/channels/yse/export/${id}`)
}

// 报备审核
const toExamine = ({ id, params }) => {
    return http.put(`v1/channels/yse/report/${id}`, params)
}



export { ysAppliesList, MultipleDownLoad, singleDownLoad, toExamine }